from mcpy.decorators import module, reflectable
from enum import Enum


@module("mc.network")
class NetworkModule:
    pass


@reflectable("ConnectionStatus", module=NetworkModule)
class connection_status(Enum):
    DISCONNECTED = 0
    CONNECTING = 1
    CONNECTED = 2
    ERROR = 3


@reflectable("ProtocolType", module=NetworkModule)
class protocol_type(Enum):
    TCP = 0
    UDP = 1
    HTTP = 2
    HTTPS = 3
